from datetime import datetime

from src.baseapp.model import db, CustomDbModel


class ProjectModel(CustomDbModel):
    __tablename__ = 'project'
    # 项目id 作为主键且唯一
    # 自增
    project_id = db.Column(db.Integer, primary_key=True, unique=True, autoincrement=True)

    # 项目名
    project_name = db.Column(db.String(20), unique=True, nullable=False)

    # 项目描述
    description = db.Column(db.Text(255), nullable=True)

    # 创建人
    create_user_id = db.Column(db.Integer, nullable=False)

